//
//  XMInviteShareView.m
//  XunMi
//
//  Created by MacBook on 2024/5/16.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMInviteShareView.h"

@interface XMInviteShareView ()
@property (weak, nonatomic) IBOutlet UIButton *wxButton;
@property (weak, nonatomic) IBOutlet UIButton *wx1Button;
@property (weak, nonatomic) IBOutlet UIButton *qqButton;
@property (weak, nonatomic) IBOutlet UIButton *qzonButton;
@property (weak, nonatomic) IBOutlet UIButton *haibaoButton;
@property (weak, nonatomic) IBOutlet UIView *bgView;


@end

@implementation XMInviteShareView

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.wxButton setImagePosition:XMImagePositionTop spacing:4];
    [self.wx1Button setImagePosition:XMImagePositionTop spacing:4];
    [self.qqButton setImagePosition:XMImagePositionTop spacing:4];
    [self.qzonButton setImagePosition:XMImagePositionTop spacing:4];
    [self.haibaoButton setImagePosition:XMImagePositionTop spacing:4];
    
    [self.bgView radiusWithRadius:20 corner:UIRectCornerTopLeft | UIRectCornerTopRight];
}


- (IBAction)close:(UIButton *)sender {
    [GKCover hideCover];
}

- (IBAction)click:(UIButton *)sender {
    if (self.clickBlock) {
        self.clickBlock(sender.tag);
    }
}


@end
